@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="robotInfoForm">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="nickname" name="昵称" underline="true"/>
                    <!--<#input id="headimgurl" name="头像" underline="true"/>-->

                    <#input id="rate" name="正确率(0-100)" underline="true"/>
                    <#select id="divisionid" name="段位" underline="true">
                        @for(division in divisions){
                        <option value="${division.id}">${division.name}</option>
                        @}
                    </#select>
                    <#select id="level" name="等级" underline="true">
                        @for(level in levels){
                        <option value="${level.id}">${level.name}</option>
                        @}
                    </#select>
                    <#input id="mintime" name="最小答题时长" underline="true"/>
                    <#input id="maxtime" name="最大答题时长" underline="true"/>
                    <#select id="gender" name="性别">
                        <option value="0">未知</option>
                        <option value="1">男</option>
                        <option value="2">女</option>
                    </#select>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">头像</label>
                        <div class="col-sm-9">
                            <div class="file-item" style="display: inline-block;">
                                <img id="headImage" style="height: 100px;width: 100px;">
                                <div class="info" id="imageName"></div>
                                <input id="headimgurl" name="headimgurl" type="hidden">
                            </div>
                            <div id="filePicker" style="display: inline;top:-20px">选择头像</div>
                            <div id="deleteImage" class="btn btn-danger" style="position: absolute;height: 32%;top:1px;margin-left: 5px;">取消</div>
                        </div>
                    </div>


                    <div class="hr-line-dashed"></div>
                    <#input id="country" name="国家" underline="true"/>
                    <#input id="city" name="城市" underline="true"/>
                    <#input id="province" name="省份" underline="true"/>
                    <#input id="remark" name="备注"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="RobotInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="RobotInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/flagGlory/robot/robot_info.js"></script>
<script src="${ctxPath}/static/js/plugins/webuploader/webuploader.js"></script>
@}
